/*
 * td4.hpp
 *
 *  Created on: 13 févr. 2012
 *      Author: aelise
 */

// Pour l''image finale du TD3, il faut normaliser de nouveau l'image à la fin en remettant les valeurs entre 0 et 255

#ifndef TD4_HPP_
#define TD4_HPP_

#include <string.h>
#include <vector>



	double* extractFirstQuarter(double* m, unsigned int x, unsigned int y);
	double * addFirstQuarter(double * m, double * quarter, unsigned int x, unsigned int y, unsigned int p );
	void writeFirstQuarter(double* final, double* m, unsigned int x, unsigned int y, int px);
	void amr2D_97(double*m, int p, int j);
	void iamr2D_97(double*m, int p, unsigned int j);
	void ajusterCoef(double* m, int p, int niveau);
	void statSousBande(double* m,  unsigned int p, unsigned int quart , unsigned int niveau, std::vector<double>* varList);
	double puissance(double sigma, double Nj);
	void calculDebit(std::vector<double>* varList , int i, double b);


	/*
	double minSousBande(double *x, unsigned int p);
	double maxSousBande(double * x, unsigned int p);
	double moyenneSousBande(double* x, unsigned int p);
	*/

#endif /* TD4_HPP_ */
